<template>
  <div class="home">
    <header>
      <van-tabs v-model="active" @click="tabClick">
        <van-tab v-for="(v,i) in ['item1','item2','item3']" :name="v" :key="i" title="标签 1"></van-tab>
      </van-tabs>
    </header>
    <main >
      <router-view></router-view>
    </main>
  </div>
</template>

<script>

export default {
  data() {
    return {
      active: 0,
      scroll: null
    };
  },
  
  methods: {
    tabClick(name) {
      this.$router.push("/layout/home/" + name);
    }
  }
};
</script>

<style>
</style>